﻿<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>Програмен Верификатор</title>

    <!-- Style sheets -->
    <link href="css/bootstrap.css" rel="stylesheet"/>
    <link href="css/toastr.css" rel="stylesheet" />
    <link href="css/app.css" rel="stylesheet"/>

    <!-- Library Scripts -->
    <script src="js/jquery.js"></script>
    <script src="js/angular.js"></script>
    <script src="js/angular-resource.js"></script>
    <script src="js/angular-mocks.js"></script>
    <script src="js/angular-ui-router.js"></script>
    <script src="js/bootstrap.js"></script>
    <script src="js/ui-utils.js"></script>
    <script src="js/ui-bootstrap-tpls-0.14.3.js"></script>
    <script src="js/toastr.js"></script>
    <script src="js/d3.js"></script>
    <script src="js/angular-charts.min.js"></script>

    <!-- Application Script -->
    <script src="app/app.js"></script>

    <!-- Services -->
    <script src="common/services/common.services.js"></script>
    <script src="common/services/submissionResource.js"></script>
    <script src="common/services/taskResource.js"></script>
    <script src="common/services/testResource.js"></script>
    <script src="common/userAccount.js"></script>
    <script src="common/currentUser.js"></script>

    <!-- Controllers -->
    <script src="app/submissions/submissionListController.js"></script>
    <script src="app/submissions/submissionAddCtrl.js"></script>
    <script src="app/tasks/taskListController.js"></script>
    <script src="app/tests/testListController.js"></script>
    <script src="app/tests/testAddCtrl.js"></script>
    <script src="app/registration/registrationCtrl.js"></script>
    <script src="app/mainCtrl.js"></script>
</head>

<body ng-app="codeVerificationSystem" ng-controller="MainCtrl as vm">
    <nav class="navbar navbar-inverse">
        <div class="container">
            <a class="navbar-brand" ui-sref="home">Начало</a>
            <a ng-if="vm.isLoggedIn()" class="navbar-brand" ui-sref="taskList">Задачи</a>
            <div ng-if="vm.isLoggedIn()" style="float: right" class="navbar-brand">Здравейте, {{vm.getProfile().username}}</div>
            <form ng-hide="vm.isLoggedIn()" class="login-form navbar-form navbar-right">
                <div class="form-group">
                    <input type="text"
                           class="form-control"
                           placeholder="Електронна поща"
                           ng-model="vm.userData.email">
                </div>
                <div class="form-group">
                    <input type="password"
                           class="form-control"
                           placeholder="парола"
                           ng-model="vm.userData.password">
                </div>
                <button type="submit"
                        class="btn btn-default"
                        ng-click="vm.login()">
                    Вход
                </button>
                <button type="submit"
                        class="btn btn-default"
                        ng-click="vm.openRegistrationDialog()">
                    Регистрация
                </button>
                <div ng-show="vm.message">{{vm.message}}</div>
            </form>
        </div>
    </nav>

    <div class="container">
        <div ui-view></div>
    </div>
</body>

</html>